package com.woniuxy.credit_loans.collection_zhang.service.Impl;

import com.woniuxy.credit_loans.collection_zhang.service.BorWarningService;
import com.woniuxy.credit_loans.entity.Borwarning;
import com.woniuxy.credit_loans.mapper.BorwarningMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class BorWarningServiceImpl implements BorWarningService {

    @Autowired
    private BorwarningMapper borwarningMapper;
    @Override
    public int deleteByPrimaryKey(Long id) {
        borwarningMapper.deleteByPrimaryKey(id);
        return 0;
    }

    @Override
    public List<Borwarning> selectAll(String input) {
         List<Borwarning> list = borwarningMapper.selectAll(input);
        return list;
    }

    @Override
    public int insertSelective(Borwarning record) {
        borwarningMapper.insertSelective(record);
        return 0;
    }

    @Override
    public Borwarning selectByPrimaryKey(Long id) {
         Borwarning borwarning = borwarningMapper.selectByPrimaryKey(id);
        return borwarning;
    }

    @Override
    public int updateByPrimaryKeySelective(Borwarning record) {
        borwarningMapper.updateByPrimaryKeySelective(record);
        return 0;
    }
}
